package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 审核路径实例（节点级）对象 audit_route
 * 
 * @author ruoyi
 * @date 2025-11-07
 */
@TableName("audit_route")
public class AuditRoute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 审核路径id
     */
    @TableId(value = "audit_route_id", type = IdType.AUTO)
    private Long auditRouteId;

    /** 业务ID */
    @Excel(name = "业务ID")
    private Long businessId;

    /** 审批业务类型 */
    private String auditBusinessType;

    /** 审核模式  1或签 2会签*/
    @Excel(name = "审核模式")
    private String auditMode;

    /** 审核轮次 ,默认1*/
    @Excel(name = "审核轮次")
    private Integer roundNo;

    /** 路径级状态：待审核/通过/拒绝/驳回/作废 */
    @Excel(name = "路径级状态：待审核 0/通过 1/拒绝 2/驳回 3/作废 -1")
    private String auditStatus;

    /** 审核角色 */
    @Excel(name = "审核角色")
    private Long auditRoleId;

    /** 抄送角色id，逗号拼接 */
    @Excel(name = "抄送角色id，逗号拼接")
    private String copyRoleIds;

    /** 审核顺序 */
    @Excel(name = "审核顺序")
    private Integer auditOrder;

    public void setAuditRouteId(Long auditRouteId)
    {
        this.auditRouteId = auditRouteId;
    }

    public Long getAuditRouteId()
    {
        return auditRouteId;
    }

    public void setBusinessId(Long businessId)
    {
        this.businessId = businessId;
    }

    public Long getBusinessId()
    {
        return businessId;
    }

    public void setAuditBusinessType(String auditBusinessType) 
    {
        this.auditBusinessType = auditBusinessType;
    }

    public String getAuditBusinessType() 
    {
        return auditBusinessType;
    }

    public void setAuditMode(String auditMode) 
    {
        this.auditMode = auditMode;
    }

    public String getAuditMode() 
    {
        return auditMode;
    }

    public void setRoundNo(Integer roundNo)
    {
        this.roundNo = roundNo;
    }

    public Integer getRoundNo()
    {
        return roundNo;
    }

    public void setAuditStatus(String auditStatus)
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus()
    {
        return auditStatus;
    }

    public void setAuditRoleId(Long auditRoleId) 
    {
        this.auditRoleId = auditRoleId;
    }

    public Long getAuditRoleId() 
    {
        return auditRoleId;
    }

    public void setCopyRoleIds(String copyRoleIds) 
    {
        this.copyRoleIds = copyRoleIds;
    }

    public String getCopyRoleIds() 
    {
        return copyRoleIds;
    }

    public void setAuditOrder(Integer auditOrder)
    {
        this.auditOrder = auditOrder;
    }

    public Integer getAuditOrder()
    {
        return auditOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("auditRouteId", getAuditRouteId())
            .append("businessId", getBusinessId())
            .append("auditBusinessType", getAuditBusinessType())
            .append("auditMode", getAuditMode())
            .append("roundNo", getRoundNo())
            .append("auditStatus", getAuditStatus())
            .append("auditRoleId", getAuditRoleId())
            .append("copyRoleIds", getCopyRoleIds())
            .append("auditOrder", getAuditOrder())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }

    /**
     * 审核记录
     */
    @TableField(exist = false)
    private List<AuditRecord> auditRecords;
    
    public List<AuditRecord> getAuditRecords() {
        return auditRecords;
    }
    
    public void setAuditRecords(List<AuditRecord> auditRecords) {
        this.auditRecords = auditRecords;
    }

    @TableField(exist = false)
    private String auditRoleName;
    public String getAuditRoleName() {
        return auditRoleName;
    }
    public void setAuditRoleName(String auditRoleName) {
        this.auditRoleName = auditRoleName;
    }
}